<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>出金详情</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <include file="Index/common_css"/>
    <link href="__PUBLIC__/admin/css/plugins/iCheck/custom.css" rel="stylesheet">
    <style type="text/css">
        .width{
            width: 200px;
        }
    </style>
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-6">
            <div class="ibox float-e-margins">
                <!--<div class="ibox-title">-->
                    <!--<h5>出金详情</h5>-->
                <!--</div>-->
                <div class="ibox-content">
                    <form class="form-horizontal">
                        <div class="form-group">
                            <label class="col-sm-3 control-label width">用户名：</label>
                            <label class="col-sm-3 control-label">{$data.user_name}</label>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label width">mt4账号：</label>
                            <label class="col-sm-3 control-label">{$data.mt4}</label>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label width">银行所在地：</label>
                            <label class="col-sm-3 control-label">{$data.area_1}-{$data.area_2}</label>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label width">银行名称：</label>
                            <label class="col-sm-3 control-label">{$data.bank}</label>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label width">银行账号：</label>
                            <label class="col-sm-3 control-label">{$data.bank_number}</label>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label width">支行名称：</label>
                            <label class="col-sm-3 control-label">{$data.bank_name}</label>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label width">提现数额（个）：</label>
                            <label class="col-sm-3 control-label">{$data.usd}</label>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label width">金额(￥)：</label>
                            <label class="col-sm-3 control-label">{$data.rmb}</label>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label width">手续费：</label>
                            <label class="col-sm-3 control-label">{$data.fee}</label>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label width">收款人姓名：</label>
                            <label class="col-sm-3 control-label">{$data.bank_username}</label>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label width">状态：</label>
                            <label class="col-sm-3 control-label">{$data.state}</label>
                        </div>
                        <if condition="$data.status eq 4">
                            <div class="form-group">
                                <label class="col-sm-3 control-label width">拒绝理由：</label>
                                <label class="col-sm-3 control-label">{$data.reason}</label>
                            </div>
                        </if>

                        <div class="form-group">
                            <div class="col-sm-offset-3 col-sm-8">
                                <if condition="$data.status eq 1">
                                    <button class="btn btn-sm btn-danger" type="submit" onclick="drawing_Revoke(this,'{$data.id}');">撤销申请</button>
                                </if>
                                <button style="margin-left: 80px;" class="btn btn-sm btn-info" type="submit" onclick="layer_close();">返回</button>
                            </div>
                        </div>

                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 全局js -->
<include file="Index/common_js"/>
<!-- Peity -->
<script src="__PUBLIC__/admin/js/plugins/peity/jquery.peity.min.js"></script>
<script src="__PUBLIC__/common/js/layer_show.js"></script>

<!-- 自定义js -->
<script src="__PUBLIC__/admin/js/content.js?v=1.0.0"></script>
<script src="__PUBLIC__/common/js/layer_show.js"></script>

<script>
    function drawing_Revoke(obj,id) {
        if(id==''){
            layer.msg("信息获取失败，请刷新重试");return false;
        }else{
            $.ajax({
                type:"POST",
                url:"__MODULE__/Capital/drawing_Revoke",
                dataType:'json',
                data:{id:id},
                success:function(data){
                    layer.close(index);
                    if(data.status==1){
                        layer.msg(data.msg);setTimeout(function () {location.reload();}, 1000);
                    }else{
                        layer.msg(data.error);
                    }
                },error:function(err){
                    layer.close(index);
                    layer.msg('error:网络错误',{icon: 2, time: 2000});
                }
            });
        }
    }






</script>




</body>

</html>
